import React from 'react'

// export default function Son(props) {
    // console.log('props: ', props);
    // console.log('props.count: ', props.count);
    // let {count, school} = props

export default function Son({count, school,addCount}){
    return (
        <div>
            <h3>Son</h3>
            <p>Son props count: {count}</p>
            <p>Son props school: {school}</p>
            <p><button onClick={()=>addCount(3)}>改变父组件的count值 + 3</button></p>
        </div>
    )
}
